<%@page import="java.sql.*"%>
<%@page import="jobportal.Dbconn" %>
<%@include file="header.jsp" %>
<%
            Connection con = Dbconn.getConn();
            Statement st = con.createStatement();
            
            int count=0;
            ResultSet rs=st.executeQuery("select count(*) from jobs where compid='"+session.getAttribute("username")+"' and validuntil>curdate()");
            if(rs.next()){
                count=rs.getInt(1);
            }
            rs = st.executeQuery("select * from jobs where compid='" + session.getAttribute("username") + "' and validuntil>curdate()");

%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="">

    <tr>
        <td align="left" valign="top" >
            <table width="100%" height="594" border="0">
                <tr>
                    <td height="22" colspan="2">



                        <strong >Welcome to </strong>
                        <span class="messagesred"><strong>Recruitment Portal</strong></span><strong >  Jobsite		
                            <p></p></strong>
                        <div align="right">&nbsp;<span class="link">Email:</span><%if (emailflag) {%>
                            <font color="green"><strong>Verified</strong></font>&nbsp;<img src="../images/ok.png" width="16" height="16"/>
                            <%} else {%>
                            <font color="red"><strong>not verified&nbsp;</strong></font><img src="../images/i_error.gif" />
                            <%}%>






                        </div>
                    </td>
                </tr>
                <tr>
                    <td width="100%" height="566" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td width="50%" align="center" valign="top"><table width="97%" border="0" cellpadding="0" cellspacing="0" class="tbl_bdr" height="177">
                                        <tr>

                                            <td height="28" colspan="3" align="left" class="sde_mnu_hdr_blue"><img src="../images/top_left.gif"; class="sde_mnu_img" style="padding-left:-1px; padding-top:-1px;"/>Job Postings </td>
                                        </tr>
                                        <tr>
                                            <td width="2%" height="30" >&nbsp;</td>
                                            <td colspan="2" align="left"><strong>Jobs Posted:</strong></td>
                                        </tr>
                                        <tr>
                                            <td>&nbsp;</td>
                                            <td width="4%"><div align="center"><img src="../images/bluearrow.gif" width="11" height="10" /></div></td>
                                            <td width="94%" align="left" >Post, edit, re-post and/or renew job postings</td>
                                        </tr>
                                        <tr>
                                            <td>&nbsp;</td>
                                            <td><div align="center"><img src="../images/bluearrow.gif" width="11" height="10" /></div></td>
                                            <td align="left" >Track responses for every job posting</td>
                                        </tr>
                                        <tr>
                                            <td>&nbsp;</td>
                                            <td><div align="center"><img src="../images/bluearrow.gif" width="11" height="10" /></div></td>
                                            <td align="left" >Set Filters to screen out unqualified candidates</td>
                                        </tr>
                                        <tr>
                                            <td height="19">&nbsp;</td>
                                            <td>&nbsp;</td>
                                            <td >&nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td>&nbsp;</td>
                                            <td>&nbsp;</td>
                                            <td><div align="right"><a href="../Company/post_jobs.jsp"><img src="../images/btn_pj.gif" width="140" height="39" border="0" /></a>&nbsp;<a href="../Company/manage_jobs.jsp"><img src="../images/btn_mjp.gif" width="141" height="38" border="0" /></a>&nbsp;</div></td>
                                        </tr>



                                    </table></td>
                                <td width="50%" align="center" valign="top"><table width="98%" cellpadding="0" cellspacing="0" class="tbl_bdr" height="224">
                                        <tr>
                                            <td height="177" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr class="sde_mnu_hdr_blue">
                                                        <td height="29" colspan="3" align="left" valign="middle" style="padding-left:5px;"><img src="../images/top_left.gif" class="sde_mnu_img2" style="margin-left:-1px; margin-bottom:-5px;"/>Active Jobs </td>
                                                    </tr>
                                                    <tr>
                                                        <td width="2%" height="29" align="left" valign="middle" >&nbsp;</td>
                                                        <td colspan="2" align="left" valign="middle" ><strong>Active Jobs : </strong><span class="messagesred"><%=count%></span></td>
                                                    </tr>
                                                    <tr>
                                                        <td rowspan="2" align="left" valign="top">&nbsp;</td>
                                                        <td height="71" colspan="2" align="left" valign="top" ><table width="79%" border="0" align="center">
                                                                <tr>
                                                                    <td width="51%" align="left" valign="top" class="bluebg">Job Title </td>
                                                                    <td width="49%" align="left" valign="top" class="bluebg">Expiry Date </td>
                                                                </tr>
                                                                <%while (rs.next()) {%>
                                                                <tr class="greybg">
                                                                    <td align="left" valign="top" style="padding-left:5px;"><span class="link"><a href="view_posted_jobs_emp.jsp?jobid=<%=rs.getString("jobid")%>" title="View Job Details" class="link"><%=rs.getString("jobtitle")%></a></span></td>
                                                                    <td align="left" valign="top" style="padding-left:5px;"><%=rs.getString("validuntil")%></td>
                                                                </tr>
                                                                <%}%>
                                                            </table></td>
                                                    </tr>
                                                    <tr>
                                                        <td width="95%" height="20" align="right" valign="top"><a href="../Company/manage_jobs.jsp"><img src="../images/btn_more.gif" width="47" height="18" border="0" /></a></td>
                                                        <td width="3%" align="right" valign="top">&nbsp;</td>
                                                    </tr>
                                                </table></td>
                                        </tr>
                                    </table></td>
                            </tr>
                            <tr>
                                <td colspan="2">&nbsp;</td>
                            </tr>




                            <tr>
                                <td colspan="2" align="center"><table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="tbl_bdr">
                                        <tr>
                                            <td height="25" align="left" class="sde_mnu_hdr_blue"><img src="../images/top_left.gif"; class="sde_mnu_img"/>Candidate Manager</td>
                                        </tr>
                                        <tr>
                                            <td height="137" align="left" valign="top"><table width="100%" height="258" border="0" cellpadding="0" cellspacing="0">
                                                    <tr>
                                                        <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                                                <tr>
                                                                    <td width="1%" height="27">&nbsp;</td>
                                                                    <td colspan="2" ><p>A unique tool to help you receive and process   applications online more efficiently than any traditional process.</p></td>
                                                                </tr>
                                                                <tr>
                                                                    <td></td>
                                                                    <td width="2%" ></td>
                                                                    <td width="97%" ></td>
                                                                </tr>
                                                                <tr>
                                                                    <td height="28">&nbsp;</td>
                                                                    <td ><div align="center">
                                                                            <div align="center" ><img src="../images/blue-arrow.gif" width="11" height="10" /></div>
                                                                        </div></td>
                                                                    <td >Manage and organize all resumes online</td>
                                                                </tr>
                                                                <tr>
                                                                    <td>&nbsp;</td>
                                                                    <td ><div align="center">
                                                                            <div align="center"><img src="../images/blue-arrow.gif" width="11" height="10" /></div>
                                                                        </div></td>
                                                                    <td >Receive and screen even non-member applications</td>
                                                                </tr>
                                                                <tr>
                                                                    <td>&nbsp;</td>
                                                                    <td ><div align="center"></div></td>
                                                                    <td >&nbsp;</td>
                                                                </tr>
                                                                <tr>
                                                                    <td>&nbsp;</td>
                                                                    <td><div align="center"></div></td>
                                                                    <td><div align="right"><a href="../Company/candidatemanager.jsp"><img src="../images/btn_cm.gif" width="139" height="37" border="0" /></a></div></td>
                                                                </tr>
                                                            </table></td>
                                                    </tr>
                                                </table></td>
                                        </tr>
                                    </table></td>
                            </tr>
                            <tr>
                                <td colspan="2">&nbsp;</td>
                            </tr>

                            <tr>
                                <td colspan="2">














                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table></td>
    </tr>
</table>
<%@include file="footer.jsp" %>